package com.onlygx.dva.common.entity.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value="树返参", description="树返参")
public class TreeData<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "父ID")
    private String pid;

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "文档类型：1-普通文档（默认），2-API服务文档，3-能力服务文档")
    private Integer docType;

    @ApiModelProperty(value = "子节点")
    private List<T> child;

}
